<html>
<head><meta charset="utf-8"><title>Discussion on token format in error message · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Discussion.20on.20token.20format.20in.20error.20message.html">Discussion on token format in error message</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="187308793"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Discussion%20on%20token%20format%20in%20error%20message/near/187308793" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Discussion.20on.20token.20format.20in.20error.20message.html#187308793">(Feb 03 2020 at 21:51)</a>:</h4>
<p>In the recent PR that introduced collecting error messages while tokenizing, we have stumbled with the dilemma of outputting tokens in error messages. The initial comment on that was left <a href="https://github.com/rust-analyzer/rust-analyzer/pull/2911#discussion_r371179967" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/2911#discussion_r371179967">here</a> by <span class="user-mention" data-user-id="133169">@matklad</span>. I see that we have different opinions on whether we surround tokens with backticks or not. I'd like to set this clearly, because we almost merged the PR but havent come to the conclusion on what error message is better<br>
this one:<br>
<code>Missing trailing `"` with `#` symbols to terminate the raw byte string literal</code><br>
or this one without backticks:<br>
<code>Missing trailing " with # symbols to terminate the raw byte string literal</code></p>



<a name="187309188"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Discussion%20on%20token%20format%20in%20error%20message/near/187309188" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Discussion.20on.20token.20format.20in.20error.20message.html#187309188">(Feb 03 2020 at 21:55)</a>:</h4>
<p>Hmm, I've reread the comments and now I see that I misunderstood them. It seems that the backticked variant is preferred, heh, I've started a discussion out of nothing ))</p>



<a name="187309597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Discussion%20on%20token%20format%20in%20error%20message/near/187309597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Discussion.20on.20token.20format.20in.20error.20message.html#187309597">(Feb 03 2020 at 21:59)</a>:</h4>
<p>Sorry for wasting a minute of your life!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>